package com.jcl.cloud.services.crawler.search.task;

public class SearchTaskHandlerWrap implements Runnable {

    private SearchTaskHandler searchTaskHandler;
    private String crawlerId;

    @Override
    public void run() {

        try {
            this.searchTaskHandler.execute(crawlerId);
        } catch (Exception e) {
            e.printStackTrace();
        }

    }


    public SearchTaskHandlerWrap(SearchTaskHandler searchTaskHandler,String crawlerId){
        this.searchTaskHandler = searchTaskHandler;
        this.crawlerId = crawlerId;
    }


}
